package com.atguigu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@ResponseBody
@RequestMapping("/hello03")
public class HelloController3 {
    @RequestMapping(value = "/h01" ,method = RequestMethod.GET)
    public String h01() {
        return "h01";
    }
    @GetMapping("/*")
    public String h02() {
        return "h02";
    }
    @RequestMapping("/h03")
    public String h03(String name) {
        return String.format( "%s", name);

    }

}
